#!/bin/sh

rm -f sample.event.proto

chmod -x *.proto

#file=linuxcounters.process_metrics_shortbusy.proto
#sed 's/lighthouse/linuxcounters/' $file > l.tmp; mv l.tmp $file

packages=`ls *.proto|cut -d'.' -f1|uniq`
rm -rf $packages

protoc --python_out=. *.proto

touch __init__.py
for package in $packages
do
   touch $package/__init__.py
done



